
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <%response.setHeader("Cache-Control", "no-cache");
          response.setHeader("Pragma", "no-cache");
          response.setDateHeader("Expires", 0);
        %>
        <meta HTTP-EQUIV="Expires" CONTENT="-1"/>
        <meta HTTP-EQUIV="Cache-Control" content="no-cache"/>
        <meta HTTP-EQUIV="Pragma" content="no-cache"/>


        <!-- Verifica se o usuário se logou no sistema e se tem permissão para acesso
             caso não tenha será redirecionado para a tela de login
        -->
        <%if (session.getAttribute("login") == null) {%>
        <jsp:forward page="Login.jsp" />
        <%}%>

        <% if (session.getAttribute("permissoes").equals("")) {%>
        <jsp:forward page="Login.jsp" />
        <%}%>
        <!-- Fim das verificações  -->


        <title>Palm Bus</title>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/interface.js"></script>


        <!-- Utilizado pelo EXT  -->
        <link rel='stylesheet' type="text/css" href="js/ext-3.1.1/resources/css/ext-all.css"/>
        <script type="text/javascript" src='js/ext-3.1.1/adapter/ext/ext-base.js'></script>
        <script type='text/javascript' src='js/ext-3.1.1/ext-all.js'></script>
        <script type='text/javascript' src='js/ext-3.1.1/src/locale/ext-lang-pt_BR.js'></script>
        <script type="text/javascript" src="js/Cadastro/CadastrarUsuarioPalm.js"></script>
         <script type="text/javascript" src="js/Programar/GridForm.js"></script>
        <script type="text/javascript" src="js/Sincronizar/ConectarPalm.js"></script>
         <script type="text/javascript" src="js/Consulta/Consulta.js"></script>
        <script type="text/javascript" src="js/Logoff/Logoff.js"></script>
        <script type='text/javascript' src='js/ext-3.1.1/ux/InputTextMask.js'></script>



        <!--[if lt IE 7]>
         <style type="text/css">
         .dock img { behavior: url(iepngfix.htc) }
         </style>
        <![endif]-->

        <link href="css/style.css" rel="stylesheet" type="text/css" />

        <style type="text/css">
            body {
                font: 100% Verdana, Arial, Helvetica, sans-serif;
                background: #ffffff;
                margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
                padding: 0;
                text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
                color: #000000;
            }

            .oneColElsCtr #container {
                width: 46em;
                background:#A2B5CD;
                margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
                border: 1px solid #000000;
                text-align: left; /* this overrides the text-align: center on the body element. */
            }
            .oneColElsCtr #mainContent {
                padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
            }
            .formulario{
                font-size: 14px;
                font-weight: bold;
                background-color: gray;
            }

        </style>

    </head>
    <body class="oneColElsCtr" id="body" >
      
        <div id="container">
            <div id="mainContent"  style="height: 540px;">
                <img alt="salvadorcard" src="images/Salvadorcard_logo_grande.gif"/>
                <br/><br/><br/>
                <center><img alt="palm bus" src="images/palm_bus.png"/></center>
                <!--bottom dock -->
                <div class="dock" id="dock2">
                    <div class="dock-container2" >

                        <%String logado = session.getAttribute("nomeUsuario").toString(); %>

                        <!--a class="dock-item2" name="alterar" id="alterar" onclick="GridFormulario();" ><span>Inicio</span><img src="images/home.png" alt="home" /></a-->
                        <a class="dock-item2" id="programar"  onclick="location.href = 'cadastro.jsp';" ><span>Cadastro</span><img src="images/programar.png" alt="Programar rota" /></a>
                        <!--a class="dock-item2" ><span>Contato</span><img src="images/email.png" alt="contact" /></a-->
                        <!--a class="dock-item2" name="sincronizar" id="sincronizar" onclick="Conectar();"><span>Sincronizar</span><img src="images/hd.png" alt="sincronizar" /></a-->
                        <a class="dock-item2"  id="consultas" onclick="location.href = 'consulta.jsp'; "><span>Consultar</span><img src="images/tabela.png" alt="consultas do sistema" /></a>
                        <!--a class="dock-item2" ><span>Video</span><img src="images/video.png" alt="video" /></a-->
                        <!--a class="dock-item2" ><span>Usuários</span><img src="images/users.png" alt="Cadastrar usuários" /></a-->
                        <a class="dock-item2" name="logoff" id="logoff" onclick="Logoff();" ><span>Logoff</span><img src="images/key2.png" alt="Logoff" /></a>


                    </div>
                </div>

            </div>
        </div>

        <!--dock menu JS options -->
        <script type="text/javascript">

            $(document).ready(
            function()
            {
                $('#dock2').Fisheye(
                {
                    maxWidth: 60,
                    items: 'a',
                    itemsText: 'span',
                    container: '.dock-container2',
                    itemWidth: 40,
                    proximity: 80,
                    alignment : 'left',
                    valign: 'bottom',
                    halign : 'center'
                }
            )
            }
        );

        </script>




    </body>
</html>
